import { buildService } from '../../helper/service'

const settings = {
  //获取项目列表
  getInterfaceList: {
    url: '/api/v1/apiMonitor/api_sort/list',
    method: 'get'
  },
  //获取项目列表详情
  getInterfaceDetail: {
    url: '/api/v1/apiMonitor/api_list',
    method: 'get',
  },
  //项目详情中的详情
  getInterfaceListDetails: {
    url: '/api/v1/apiMonitor/project_info',
    method: 'get',
  },
  //设置供应商
  getProvider: {
    url: '/api/v1/apiMonitor/set_access',
    method: 'put'
  },
  //设置异常阈值
  getAbnormal: {
    url: '/api/v1/apiMonitor/threshold_set',
    method: 'put'
  },
  //接口异常趋势
  setAbnormalTrend: {
    url: '/api/v1/apiMonitor/api_monitor_chart',
    method: 'get'
  },
  //供应商列表
  providerList: {
    url: '/api/v1/apiMonitor/access_list',
    method: 'get'
  },
  //api异常信息
  abnormalApi: {
    url: '/api/v1/apiMonitor/api_log_list',
    method: 'get'
  },
  //阈值
  getThreshold: {
    url: '/api/v1/apiMonitor/threshold',
    method: 'get'
  },
}

export default buildService(settings)